<jsp:include page="../../header.jsp">
			<jsp:param value="item5" name="item"/>
</jsp:include> 
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<section class="content">
	<section class="widget">
		<header>
			<span class="icon">&#128196;</span>
			<hgroup>
				<h1>个人出差记录</h1>
				<h2>记录列表，<label><a href="javascript:void(0);" id="msg"><font color="#5daced">差旅标准详情</font></a></label>
						<input type="hidden" name="travelstandrad" id="travelstandrad" value='<s:property value="travelstandrad"/>'>
				</h2>
			</hgroup>
			
		</header>
		<div class="content">
   <div class="tabs" id="tabs">
	<ul>
    	<li class="on">待审核</li>
    	<li>审核不通过</li>
    	<li>审核通过</li>
    	<li>待报销</li>
    	<li>报销不通过</li>
    	<li>已报销</li>
    </ul>
    
    <div class="show">
    
    	<s:if test="needChecks!=null&&needChecks.size()!=0">
		    <table id="myTable">
				<tr>
					<th>出差单号</th>
					<th>职工号</th>
					<th>职工姓名</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>预算/元</th>
					<th>状态</th>
					<th>审批人</th>
				</tr>
				<s:iterator value="needChecks" id="row" status="state">
					<tr>
						<td><a href="<s:url action='personTravelInfoAction!getApplayInfoList.action?travelorder=%{#row.travelOrder}' />">
							<s:property value="#row.travelOrder"/></a>
						</td>
						 <td>
							<s:property value="#row.userInfoByUserid.userid"/>
						</td>
						<td>
							<s:property value="#row.userInfoByUserid.userName"/>
						</td>
						<td>
							<s:property value="#row.startTime"/>
						</td>
						<td>
							<s:property value="#row.endTime"/>
						</td>
						<td>
							<s:property value="#row.amount"/>
						</td>
						<td>
							<s:property value="#row.verifierStatus"/>
						</td>
						<td>
							<s:property value="#row.userInfoByVerifierId.userName"/>
						</td>
					</tr>
				</s:iterator>
			</table>
			</s:if>
			<s:else>
				<h3>没有待审核的出差申请</h3>
			</s:else>
    </div>
    
    <div class="hide">
    	<s:if test="checkFails!=null&&checkFails.size()!=0">
		    <table id="myTable">
				<tr>
					<th>出差单号</th>
					<th>职工号</th>
					<th>职工姓名</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>预算/元</th>
					<th>状态</th>
					<th>审批人</th>
				</tr>
				<s:iterator value="checkFails" id="row" status="state">
					<tr>
						<td><a href="<s:url action='personTravelInfoAction!getApplayInfoList.action?travelorder=%{#row.travelOrder}' />">
							<s:property value="#row.travelOrder"/></a>
						</td>
						 <td>
							<s:property value="#row.userInfoByUserid.userid"/>
						</td>
						<td>
							<s:property value="#row.userInfoByUserid.userName"/>
						</td>
						<td>
							<s:property value="#row.startTime"/>
						</td>
						<td>
							<s:property value="#row.endTime"/>
						</td>
						<td>
							<s:property value="#row.amount"/>
						</td>
						<td>
							<s:property value="#row.verifierStatus"/>
						</td>
						<td>
							<s:property value="#row.userInfoByVerifierId.userName"/>
						</td>
					</tr>
				</s:iterator>
			</table>
			</s:if>
			<s:else>
				<h3 >没有审核不通过的出差申请</h3>
			</s:else>
    </div>
    
    <div class="hide">
    	<s:if test="checkSuccess!=null&&checkSuccess.size()!=0">
		    <table id="myTable">
				<tr>
					<th>出差单号</th>
					<th>职工号</th>
					<th>职工姓名</th>
					<th>开始时间</th>
					<th>结束时间</th>
					<th>预算/元</th>
					<th>状态</th>
					<th>审批人</th>
				</tr>
				<s:iterator value="checkSuccess" id="row" status="state">
					<tr>
						<td><a href="<s:url action='personTravelInfoAction!getApplayInfoList.action?travelorder=%{#row.travelOrder}' />">
							<s:property value="#row.travelOrder"/></a>
						</td>
						 <td>
							<s:property value="#row.userInfoByUserid.userid"/>
						</td>
						<td>
							<s:property value="#row.userInfoByUserid.userName"/>
						</td>
						<td>
							<s:property value="#row.startTime"/>
						</td>
						<td>
							<s:property value="#row.endTime"/>
						</td>
						<td>
							<s:property value="#row.amount"/>
						</td>
						<td>
							<s:property value="#row.verifierStatus"/>
						</td>
						<td>
							<s:property value="#row.userInfoByVerifierId.userName"/>
						</td>
					</tr>
				</s:iterator>
			</table>
			</s:if>
			<s:else>
				<h3 >没有审核通过的出差申请</h3>
			</s:else>
    </div>
    
    <div class="hide">
    	<s:if test="needApplays!=null&&needApplays.size()!=0">
    		 <table id="myTable">
		<tr>
			<th>报销单号</th>
			<th>职工号</th>
			<th>职工姓名</th>
			<th>申请报销/元</th>
			<th>实际报销/元</th>
			<th>预算/元</th>
			<th>节省/元</th>
			<th>状态</th>
			<th>审批人</th>
		</tr>
		<s:iterator value="needApplays" id="row" status="state">
			<tr>
				<td><a href="<s:url action='personTravelInfoAction!getApplayInfoList.action?travelorder=%{#row.travelOrder}' />">
					<s:property value="#row.travelOrder"/></a>
				</td>
				 <td>
					<s:property value="#row.userInfoByUserid.userid"/>
				</td>
				<td>
					<s:property value="#row.userInfoByUserid.userName"/>
				</td>
					<td>
						<s:property value="#row.applayReim.appAmount"/>
					</td>
					<td>
						<s:property value="#row.applayReim.realAppAmount"/>
					</td>
					<td>
						<s:property value="#row.applayReim.amount"/>
					</td>
					 <td>
						<s:property value="#row.applayReim.saveCost"/>
					</td>
				<td>
					<s:property value="#row.verifierStatus"/>
				</td>
				<td>
					<s:property value="#row.userInfoByVerifierId.userName"/>
				</td>
			</tr>
		</s:iterator>
	</table>
    	</s:if>
    	<s:else>
    	<h3>没有待报销的申请</h3>
    	</s:else>
    </div>
    <div class="hide">
    	<s:if test="applayFails!=null&&applayFails.size()!=0">
    		 <table id="myTable">
		<tr>
			<th>报销单号</th>
			<th>职工号</th>
			<th>职工姓名</th>
			<th>申请报销/元</th>
			<th>实际报销/元</th>
			<th>预算/元</th>
			<th>节省/元</th>
			<th>状态</th>
			<th>审批人</th>
		</tr>
		<s:iterator value="applayFails" id="row" status="state">
			<tr>
				<td><a href="<s:url action='personTravelInfoAction!getApplayInfoList.action?travelorder=%{#row.travelOrder}' />">
					<s:property value="#row.travelOrder"/></a>
				</td>
				 <td>
					<s:property value="#row.userInfoByUserid.userid"/>
				</td>
				<td>
					<s:property value="#row.userInfoByUserid.userName"/>
				</td>
				
					<td>
						<s:property value="#row.applayReim.appAmount"/>
					</td>
					<td>
						<s:property value="#row.applayReim.realAppAmount"/>
					</td>
					<td>
						<s:property value="#row.applayReim.amount"/>
					</td>
					 <td>
						<s:property value="#row.applayReim.saveCost"/>
					</td>
				
				<td>
					<s:property value="#row.verifierStatus"/>
				</td>
				<td>
					<s:property value="#row.userInfoByVerifierId.userName"/>
				</td>
			</tr>
		</s:iterator>
	</table>
    	</s:if>
    	<s:else>
    	<h3>没有报销不通过的申请</h3>
    	</s:else>
    </div>
    
    <div class="hide">
    	<s:if test="applaySuccess!=null&&applaySuccess.size()!=0">
    		 <table id="myTable">
		<tr>
			<th>报销单号</th>
			<th>职工号</th>
			<th>职工姓名</th>
			<th>申请报销/元</th>
			<th>实际报销/元</th>
			<th>预算/元</th>
			<th>节省/元</th>
			<th>状态</th>
			<th>审批人</th>
		</tr>
		<s:iterator value="applaySuccess" id="row" status="state">
			<tr>
				<td><a href="<s:url action='personTravelInfoAction!getApplayInfoList.action?travelorder=%{#row.travelOrder}' />">
					<s:property value="#row.travelOrder"/></a>
				</td>
				 <td>
					<s:property value="#row.userInfoByUserid.userid"/>
				</td>
				<td>
					<s:property value="#row.userInfoByUserid.userName"/>
				</td>
				
					<td>
						<s:property value="#row.applayReim.appAmount"/>
					</td>
					<td>
						<s:property value="#row.applayReim.realAppAmount"/>
					</td>
					<td>
						<s:property value="#row.applayReim.amount"/>
					</td>
					 <td>
						<s:property value="#row.applayReim.saveCost"/>
					</td>
				
				<td>
					<s:property value="#row.verifierStatus"/>
				</td>
				<td>
					<s:property value="#row.userInfoByVerifierId.userName"/>
				</td>
			</tr>
		</s:iterator>
	</table>
    	</s:if>
    	<s:else>
    		<h3>没有已报销的申请</h3>
    	</s:else>
    </div>
    
   </div>
   </div>
 </section>
 <script>
		 var tip= document.getElementById("travelstandrad").value;			
		
		
			$("#msg").hover(function(){
				layer.tips(tip,"#msg",{
					tips:[1,"#3595cc"]
				});
			
			});
			
		    var oTab = document.getElementById("tabs");
			    var oUl = oTab.getElementsByTagName("ul")[0];
			    var oLis = oUl.getElementsByTagName("li");
			  var oDivs= oTab.getElementsByTagName("div");
           for(var i= 0,len = oLis.length;i<len;i++){  
               oLis[i].index = i;
               oLis[i].onclick = function() {
                   for(var n= 0;n<len;n++){
                       oLis[n].className = "";
                       oDivs[n].className = "hide";//隐藏的类名
                   }
	               this.className = "on";//显示的类名
	               oDivs[this.index].className = "";
               };
           }
     
		   
	</script>
 <%@ include file="../../footer.jsp" %>
